package com.yanqu.road.entity.activity.douluodalu.data;

import com.yanqu.road.entity.DataObject;
import com.yanqu.road.entity.FieldTypeAnnotation;
import com.yanqu.road.entity.DataStatus;

@FieldTypeAnnotation(tableName = "t_c_activity_douluodalu_box")
public class DouLuoDaLuBox extends DataObject {

    @FieldTypeAnnotation(desc = "活动ID", select = true, update = true)
    private int activityId;
    @FieldTypeAnnotation(desc = "组id", select = true, update = true)
    private int groupId;
    @FieldTypeAnnotation(desc = "已抽隐藏款盲盒数量")
    private int count;

    public DouLuoDaLuBox() {
    }

    public DouLuoDaLuBox(int activityId, int groupId) {
        this.activityId = activityId;
        this.groupId = groupId;
        setInsertOption();
    }

    public void setActivityId(int activityId) {
        if (this.activityId != activityId) {
            this.activityId = activityId;
            setOp(DataStatus.Update);
        }
    }

    public int getGroupId() {
        return groupId;
    }

    public void setGroupId(int groupId) {
        this.groupId = groupId;
    }

    public void setCount(int count) {
        if (this.count != count) {
            this.count = count;
            setOp(DataStatus.Update);
        }
    }

    public int getActivityId() {
        return activityId;
    }

    public int getCount() {
        return count;
    }
}
